package com.cheer.websocket;

import com.cheer.bo.OpponentBO;
import lombok.Data;

/**
 * @author cheer
 */
@Data
public class MatchMessage {

    private Integer type;

    private OpponentBO user;

    private OpponentBO opponent;

    public enum TypeEnum {

        FIND_OPPONENT(200, "匹配成功"),
        FIND_NO_OPPONENT(404, "匹配失败");

        private Integer code;
        private String message;

        TypeEnum(Integer code, String message) {
            this.code = code;
            this.message = message;
        }

        public Integer getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }
    }

}
